package com.sky.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

@Data
@ApiModel("员工分页DTO对象")
public class EmployeePageQueryDTO implements Serializable {

    //员工姓名
    @ApiModelProperty("员工姓名")
    private String name;

    //页码
    @ApiModelProperty("分页页码")
    @Min(value = 1,message = "分页页码最小为1")
    private int page;

    //每页显示记录数
    @ApiModelProperty("每页记录数")
    @Min(value = 10,message = "每页最小记录10条")
    @Max(value = 40,message = "每页最大记录40条")
    private int pageSize;
}
